//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aidong.model.wills;

import java.io.Serializable;

public class PssProductStockPK implements Serializable {
	protected String productCode;
	protected String shopCode;

	public PssProductStockPK() {
	}

	public PssProductStockPK(String productCode, String shopCode) {
		this.productCode = productCode;
		this.shopCode = shopCode;
	}

	public String getProductCode() {
		return this.productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getShopCode() {
		return this.shopCode;
	}

	public void setShopCode(String shopCode) {
		this.shopCode = shopCode;
	}

	public boolean equals(Object o) {
		if(this == o) {
			return true;
		} else if(o != null && this.getClass() == o.getClass()) {
			PssProductStockPK that = (PssProductStockPK)o;
			if(this.productCode != null) {
				if(!this.productCode.equals(that.productCode)) {
					return false;
				}
			} else if(that.productCode != null) {
				return false;
			}

			if(this.shopCode != null) {
				if(this.shopCode.equals(that.shopCode)) {
					return true;
				}
			} else if(that.shopCode == null) {
				return true;
			}

			return false;
		} else {
			return false;
		}
	}

	public int hashCode() {
		int result = this.productCode != null?this.productCode.hashCode():0;
		result = 31 * result + (this.shopCode != null?this.shopCode.hashCode():0);
		return result;
	}
}
